
package design_mode.代理.jdk;

public class RealSubject implements Subject, Subject2 {
    @Override
    public int getInt(Integer i) {
        System.out.println("this is method of getInt " + i++);
        return i;
    }

    @Override
    public String getString(String source) {
        System.out.println("source string is :" + source);
        source = source + " suffix";
        return source;
    }

    public void noProxy() {
        System.out.println("noProxy");
    }
}